﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TopBike.Master" AutoEventWireup="true"
    CodeBehind="gio-hang.aspx.cs" Inherits="SES.CMS.gio_hang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<h1>Giỏ hàng</h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="shopcart">
    <table data-role="table" id="table-custom-2" data-mode="columntoggle" class="ui-body-d ui-shadow table-stripe ui-responsive" data-column-btn-theme="b" data-column-btn-text="Hiển thị cột" data-column-popup-theme="a">
         <thead>
           <tr class="ui-bar-d">
             <th>STT</th>
             <th>Tên sản phẩm</th>
             <th></th>
             <th data-priority="3">Giá</th>
             <th data-priority="1"><abbr title="Rotten Tomato Rating">Số lượng</abbr></th>
             <th data-priority="5">Thành tiền</th>
           </tr>
         </thead>
         <tbody>
            <asp:Repeater ID="listCart" runat="server">
                <ItemTemplate>
                    <tr>
                        <td><%# Container.ItemIndex + 1 %></td>
                        <td><a href="#" data-rel="external"><%#Eval("Name") %></a></td>
                        <th><asp:TextBox ID="txtID" Text='<%# Eval("Id") %>' Visible="false" runat="server"></asp:TextBox></th>
                        <td><%#Eval("Cost") %></td>
                        <td>
                        <asp:TextBox ID="txtQty" Text='<%# Eval("Quantity") %>' type="number" data-mini="true" runat="server"></asp:TextBox>
                        
                        </td>
                        <td><%#Eval("TotalCost")%></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
             
           
         </tbody>
       </table>
    
       <fieldset class="ui-grid-b">
            <div class="ui-block-a"><button type="submit" data-theme="c">Quay lại mua hàng</button></div>
            <div class="ui-block-b"><asp:Button ID="Button1" runat="server" Text="Cập nhật" 
                    data-theme="a" onclick="Button1_Click"/></div>
            <div class="ui-block-c"><button type="submit" data-theme="b">Thanh toán</button></div>
        </fieldset>
            <h5>Tổng tiền: <asp:Literal ID="ltTotal" runat="server"/></h5>
            <h5><asp:Literal ID="ltStringTotal" runat="server"/></h5>
</div>
</asp:Content>
